﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>爱淘商 旅业通</title>

    <script type="text/javascript" language="javascript">
        
        function request(paras) {
            var url = location.href;
            var paraString = url.substring(url.indexOf("?") + 1, url.length).split("&");
            var paraObj = {}
            for (i = 0; j = paraString[i]; i++) {
                paraObj[j.substring(0, j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=") + 1, j.length);
            }
            var returnValue = paraObj[paras.toLowerCase()];
            if (typeof (returnValue) == "undefined") {
                return "";
            } else {
                return returnValue;
            }
        }

        window.onload = function () {
            if (request('code') != "undefined") {
                window.location.href = "https://oauth.tbsandbox.com/token?response_type=code&redirect_uri=http://localhost:64822/lyt/lyt_index.html&client_id=1021236413&client_secret=sandbox17043c6b462896102f96efd39&code=" + request('code');
            }
        }
    </script>
</head>
<body>

</body>
</html>
